//
//  File.swift
//  mywei
//
//  Created by myd on 15/12/21.
//  Copyright © 2015年 myd1. All rights reserved.
//

import UIKit

class homecellorg: hometitlecell {
    override func setpp() {
        super.setpp()
        contentView.addConstraint(NSLayoutConstraint(item: Collection, attribute: NSLayoutAttribute.Top, relatedBy: NSLayoutRelation.Equal, toItem: textlab, attribute: NSLayoutAttribute.Bottom, multiplier: 1, constant: 8))
        
        
        prew = NSLayoutConstraint(item: Collection, attribute: NSLayoutAttribute.Width, relatedBy: NSLayoutRelation.Equal, toItem: nil, attribute: NSLayoutAttribute.NotAnAttribute, multiplier: 0, constant: 290)
        contentView.addConstraint(prew)
        
        pre = NSLayoutConstraint(item: Collection, attribute: NSLayoutAttribute.Height, relatedBy: NSLayoutRelation.Equal, toItem: nil, attribute: NSLayoutAttribute.NotAnAttribute, multiplier: 0, constant: 290)
        contentView.addConstraint(pre)
        
        contentView.addConstraint(NSLayoutConstraint(item: Collection, attribute: NSLayoutAttribute.Left, relatedBy: NSLayoutRelation.Equal, toItem: contentView, attribute: NSLayoutAttribute.Left, multiplier: 1, constant: 8))
    }
}